﻿using Common.Domain;
using Microsoft.EntityFrameworkCore;

namespace Common.Services
{
    public class MyContext : DbContext
    {
        public MyContext(DbContextOptions<MyContext> options) : base(options)
        {
        }
        public DbSet<Account> Accounts { get; set; }
        public DbSet<Food> Foods { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<ProductImg> ProductsImgs { get; set; }
        public DbSet<Breed> Breeds { get; set; }//养殖信息表
        public DbSet<Immunity> Immunities { get; set; }//免疫信息表
        public DbSet<Image> Images { get; set; }
        public DbSet<FarmEnterprise> FarmEnterprise { get; set; }//企业信息表
        public DbSet<Slaughte> Slaughtes { get; set; }//屠宰信息
        public DbSet<SlaughteEnterprise> SlaughteEnterprises { get; set; }//企业屠宰信息
        public DbSet<Machining> Machinings { get; set; }//深加工信息表
        public DbSet<Material> Materials { get; set; }//原料信息表
        public DbSet<Accessories> Accessories { get; set; }//辅料信息表
        public DbSet<Additive> Additives { get; set; }//添加剂表
        public DbSet<PackeMaterial> PackeMaterials { get; set; }//包材表
        public DbSet<MachiningEnterprise> MachiningsEnterprises { get;  set; }//加工企业表
    }
}
